package com.ct.ioc.controller;


import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/logger2")
public class LoggerController2 {

    @RequestMapping("/print")
    public String print () {
        log.trace("我是trace级别");
        log.debug("我是debug级别");
        log.info("我是info级别");
        log.warn("我是warn级别");
        log.error("我是error级别");
        return "1";
    }
}
